
#include "util/env.h"
#include "Geo/map/geomap.h"

namespace Env
{

    Shader pointShader;
    Shader lineShader;
    Shader polygonShader;
    Shader borderShader;
    Shader highlightShader;
    Shader textureShader;
    Renderer renderer;

    void createShaders()
    {
        printf("point");
        pointShader.create("../Resources/shaders/point_vert.glsl",
                           "../Resources/shaders/point_frag.glsl");
        printf("line");
        lineShader.create("../Resources/shaders/line_vert.glsl",
                          "../Resources/shaders/line_frag.glsl");
        printf("polygon");
        polygonShader.create("../Resources/shaders/polygon_vert.glsl",
                             "../Resources/shaders/polygon_frag.glsl");
        printf("border");
        borderShader.create("../Resources/shaders/border_vert.glsl",
                            "../Resources/shaders/border_frag.glsl");
        printf("hightlight");
        highlightShader.create("../Resources/shaders/highlight_vert.glsl",
                               "../Resources/shaders/highlight_frag.glsl");
        printf("texture");
        textureShader.create("../Resources/shaders/texture_vert.glsl",
                             "../Resources/shaders/texture_frag.glsl");
    }

    bool isEditing = false;
    CursorType cursorType = CursorType::Normal;
    GeoMap* map = new GeoMap();
    OperationList opList;
    QString HOME = ".";
    //our add
    DrawType drawType = DrawType::none;
    GeoFeatureLayer *curEditingLayer=new GeoFeatureLayer();
    QString curLayerName=" ";
    QString curDatabase="sys";
} // namespace Env
